import _fetch from './request'

// 题库列表
function getQuestionList (params) {
  return _fetch({
    url: '/question/list',
    params
  })
}
// export let getQuestionList = function (params) {
//   return _fetch({
//     url: '/question/list',
//     params
//   })
// }
// export let a = 100
// 新增题库
function addQuestion (data) {
  return _fetch({
    url: '/question/add',
    method: 'post',
    data
  })
}
// 编辑
function editQuestion (data) {
  return _fetch({
    url: '/question/edit',
    method: 'post',
    data
  })
}
// 设置状态
function setQuestionStatus (data) {
  return _fetch({
    url: '/question/status',
    method: 'post',
    data
  })
}
// 删除
// 删除
function delQuestion (data) {
  return _fetch({
    url: '/question/remove',
    method: 'post',
    data
  })
}

export {
  getQuestionList,
  addQuestion,
  editQuestion,
  setQuestionStatus,
  delQuestion
}
